package com.iretailer.report.mapper;

import com.iretailer.report.base.SuperMapper;
import com.iretailer.report.model.UserMall;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: xjw
 * @Date: 2019/2/23 22:41
 * @Description:
 */
public interface UserMallMapper extends SuperMapper<UserMall> {

    /**
     * 主要用于用户关联案场
     *
     * @param userIds
     * @return
     */
    List<String> selectMallIdsByUserIds(@Param("userIds") List<String> userIds);

    int insertUsersMalls(@Param("userId") String userId, @Param("mallIds") List<String> mallIds);

    List<Map<String, Object>> selectMallsByUserIds(@Param("userIds") List<String> userIds);

    List<Map<String, Object>> selectAllMalls();
}
